﻿<UserControl x:Class="MsiCustomize.StandardMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:MsiCustomize"
             mc:Ignorable="d" 
             d:DesignHeight="18" d:DesignWidth="300">
    <Menu>
        <MenuItem Header="_File">
            <MenuItem Command="New">
                <MenuItem.Icon>
                    <Viewbox x:Uid="DocumentNew">
                        <Canvas Height="100" Width="100">
                            <Path Stroke="Black" StrokeThickness="2" Fill="AntiqueWhite" Data="M15,90 L15,10 L60,10 L80,30 L80,90z" />
                            <Path Stroke="Black" Fill="Beige" Data="M60,10 L60,30 L80,30z" />
                            <TextBlock Foreground="Gold" Text="*" FontSize="52" Canvas.Top="-11" Canvas.Left="58" />
                            <TextBlock Foreground="Gold" Text="*" FontSize="52" Canvas.Top="-11" Canvas.Left="62" />
                            <TextBlock Foreground="Orange" Text="*" FontSize="52" Canvas.Top="-11" Canvas.Left="60" />
                        </Canvas>
                    </Viewbox>
                </MenuItem.Icon>
            </MenuItem>
            <MenuItem Command="Open">
                <MenuItem.Icon>
                    <Viewbox x:Uid="FolderOpenDocument">
                        <Canvas Height="100" Width="100">
                            <Path Stroke="Black" StrokeThickness="2" Fill="Goldenrod" Data="M10,90 L10,30 L30,30 L35,35 L90,35 L90,90z" />
                            <Path Stroke="Black" StrokeThickness="2" Fill="AntiqueWhite" Data="M15,90 L17,10 L80,10 L80,90z" />
                            <Path Stroke="Gray" StrokeThickness="2" Data="M35,25 L40,25z M35,35 L55,35z M35,45 L55,45z M35,55 L55,55z M35,65 L55,65z M35,75 L55,75z" />
                            <Path Stroke="Black" StrokeThickness="2" Fill="#FFE8CD88" Data="M10,90 L20,50 L45,50 L50,45 L100,45 L90,90z" />
                        </Canvas>
                    </Viewbox>
                </MenuItem.Icon>
            </MenuItem>
            <Separator />
            <MenuItem Command="Save">
                <MenuItem.Icon>
                    <Viewbox x:Uid="DocumentCheckAs">
                        <Canvas Height="100" Width="100">
                            <Path Stroke="Black" StrokeThickness="2" Fill="AntiqueWhite" Data="M15,90 L15,10 L80,10 L80,90z" />
                            <Path Stroke="Gray" StrokeThickness="2" Data="M35,25 L40,25z M35,35 L55,35z M35,45 L55,45z M35,55 L55,55z M35,65 L55,65z M35,75 L55,75z" />
                            <Path Fill="Red" Data="M3.344,45.199L35.035,61.957 95.928,14.669 35.035,85.982z"/>
                        </Canvas>
                    </Viewbox>
                </MenuItem.Icon>
            </MenuItem>
            <MenuItem Command="SaveAs">
                <MenuItem.Icon>
                    <Viewbox x:Uid="DiskSaveAs">
                        <Canvas Height="100" Width="100">
                            <Path Stroke="Black" StrokeThickness="2" Fill="AntiqueWhite" Data="M15,90 L15,10 L80,10 L80,90z" />
                            <Path Stroke="Gray" StrokeThickness="2" Data="M35,25 L40,25z M35,35 L55,35z M35,45 L55,45z M35,55 L55,55z M35,65 L55,65z M35,75 L55,75z" />
                            <Path Fill="Blue" Data="M3.344,45.199L35.035,61.957 95.928,14.669 35.035,85.982z"/>
                            <Path Stroke="Black" StrokeThickness="10" StrokeDashArray="5 10" Data="M50,80 L50,80z M65,80 L65,80z M80,80 L80,80z" />
                        </Canvas>
                    </Viewbox>
                </MenuItem.Icon>
            </MenuItem>
            <Separator />
            <MenuItem Command="SystemCommands.CloseWindowCommand" Header="E_xit" InputGestureText="Alt+F4">
                <MenuItem.Icon>
                    <Viewbox x:Uid="FileExit">
                        <Canvas Height="100" Width="100">
                            <Path Fill="Red" Data="M5,50 A45,45 1 1 1 5,51z" />
                            <Path Stroke="White" StrokeThickness="10" Data="M20,52 A30,28 1 1 1 20,53z" />
                            <Rectangle Stroke="Red" Fill="White" StrokeThickness="8" Width="30" Height="60" Canvas.Left="35" Canvas.Top="6" RadiusX="50" RadiusY="10" />
                        </Canvas>
                    </Viewbox>
                </MenuItem.Icon>
            </MenuItem>
        </MenuItem>
        <MenuItem Header="_Help" >
            <MenuItem Command="Help" InputGestureText="F1">
                <MenuItem.Icon>
                    <Viewbox x:Uid="HelpAbout">
                        <Canvas Height="100" Width="100">
                            <Rectangle Stroke="SkyBlue" StrokeThickness="10" Fill="#FF364395" Width="100" Height="100" Canvas.Left="5" Canvas.Top="5" RadiusX="50" RadiusY="50"  />
                            <TextBlock Text="i" Canvas.Top="5" Canvas.Left="5" FontSize="88" Width="100" Height="100" TextAlignment="Center" VerticalAlignment="Center" Foreground="White" FontFamily="Times New Roman" FontWeight="ExtraBold" />
                        </Canvas>
                    </Viewbox>
                </MenuItem.Icon>
            </MenuItem>
        </MenuItem>
    </Menu>
</UserControl>
